﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

namespace cnBlogs.Common.Helper
{
    class ItemsChangesBottomAppBarControlHelper
    {
        public static void BottomAppBarControl(ListViewBase lvb, AppBar appBar)
        {
            if (lvb.SelectedItem == null)
            {
                appBar.IsOpen = false;
                appBar.IsSticky = false;
                appBar.Visibility = Visibility.Collapsed;
            }
            else
            {
                appBar.Visibility = Visibility.Visible;
                appBar.IsSticky = true;
                appBar.IsOpen = true;
            }
        }
    }
}
